<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Calculatrice polonais inversé LO21:  Fichier source de /home/yuntux/UTC/GI02/LO21/projet/projet_propre/constante.h</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Calculatrice polonais inversé LO21
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Généré par Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="namespaces.html"><span>Espaces&#160;de&#160;nommage</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&#160;de&#160;fichier</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">/home/yuntux/UTC/GI02/LO21/projet/projet_propre/constante.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="constante_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef CONSTANTE_H</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define CONSTANTE_H</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00018"></a>00018 <span class="preprocessor">#include &lt;QtGui&gt;</span>
<a name="l00019"></a>00019 <span class="preprocessor">#include &quot;<a class="code" href="logmessage_8h.html">logmessage.h</a>&quot;</span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &quot;<a class="code" href="logsystem_8h.html">logsystem.h</a>&quot;</span>
<a name="l00021"></a>00021 
<a name="l00022"></a><a class="code" href="constante_8h.html#a1d1cfd8ffb84e947f82999c682b666a7">00022</a> <span class="keyword">enum</span> <a class="code" href="constante_8h.html#a1d1cfd8ffb84e947f82999c682b666a7">Type</a> {
<a name="l00023"></a><a class="code" href="constante_8h.html#a1d1cfd8ffb84e947f82999c682b666a7a310a841612cf153caf2103c7d7136070">00023</a>        <a class="code" href="constante_8h.html#a1d1cfd8ffb84e947f82999c682b666a7a310a841612cf153caf2103c7d7136070">entier</a>,
<a name="l00024"></a><a class="code" href="constante_8h.html#a1d1cfd8ffb84e947f82999c682b666a7a0ec75e38f86c720d5b37dac4e7efbeb5">00024</a>        <a class="code" href="constante_8h.html#a1d1cfd8ffb84e947f82999c682b666a7a0ec75e38f86c720d5b37dac4e7efbeb5">rationnel</a>,
<a name="l00025"></a><a class="code" href="constante_8h.html#a1d1cfd8ffb84e947f82999c682b666a7ab76fc0da4fc267a87fce3e239e9b0290">00025</a>        <a class="code" href="constante_8h.html#a1d1cfd8ffb84e947f82999c682b666a7ab76fc0da4fc267a87fce3e239e9b0290">reel</a>,
<a name="l00026"></a><a class="code" href="constante_8h.html#a1d1cfd8ffb84e947f82999c682b666a7ab5b3a46d90ce465f0ad4c9f7a51b1102">00026</a>        <a class="code" href="constante_8h.html#a1d1cfd8ffb84e947f82999c682b666a7ab5b3a46d90ce465f0ad4c9f7a51b1102">complexe</a>,
<a name="l00027"></a><a class="code" href="constante_8h.html#a1d1cfd8ffb84e947f82999c682b666a7ac810bbb61792a076f46cad2c89d87e1d">00027</a>        <a class="code" href="constante_8h.html#a1d1cfd8ffb84e947f82999c682b666a7ac810bbb61792a076f46cad2c89d87e1d">expression</a>,
<a name="l00028"></a>00028     };
<a name="l00029"></a>00029 
<a name="l00030"></a><a class="code" href="class_constante.html">00030</a> <span class="keyword">class </span><a class="code" href="class_constante.html">Constante</a>
<a name="l00031"></a>00031 {
<a name="l00032"></a>00032 <span class="keyword">public</span>:
<a name="l00033"></a><a class="code" href="class_constante.html#af747f270ad3d50813786a1b013bac959">00033</a>     <span class="keyword">virtual</span> <a class="code" href="class_constante.html#af747f270ad3d50813786a1b013bac959">~Constante</a>(){};
<a name="l00034"></a>00034     <span class="keyword">virtual</span> QString <a class="code" href="class_constante.html#a78b5d9ee6a7e70349db6641a08f77479">afficher</a>() <span class="keyword">const</span> = 0; <span class="comment">//afficher est virtuelle pure donc la classe est abstraite</span>
<a name="l00035"></a><a class="code" href="class_constante.html#a243b6eabd1fd476af827c5b523cddfac">00035</a>     <span class="keyword">virtual</span> <a class="code" href="class_constante.html">Constante</a>* <a class="code" href="class_constante.html#a243b6eabd1fd476af827c5b523cddfac">addition</a>(<a class="code" href="class_constante.html">Constante</a>* c){<span class="keywordflow">throw</span> <a class="code" href="class_log_message.html">LogMessage</a>(2,<span class="stringliteral">&quot;La fonction LOG n&#39;est pas implémentée pour les complexes.&quot;</span>, <a class="code" href="logmessage_8h.html#ac0565c81f330a720d673510e0886bb71adf401a3bb36823971749977b65761888">moyen</a>);}
<a name="l00036"></a><a class="code" href="class_constante.html#a650e88b74d2f8a052e6a11363b3ec816">00036</a>     <span class="keyword">virtual</span> <a class="code" href="class_constante.html">Constante</a>* <a class="code" href="class_constante.html#a650e88b74d2f8a052e6a11363b3ec816">produit</a>(<a class="code" href="class_constante.html">Constante</a>* c){<span class="keywordflow">throw</span> <a class="code" href="class_log_message.html">LogMessage</a>(2,<span class="stringliteral">&quot;La fonction LOG n&#39;est pas implémentée pour les complexes.&quot;</span>, <a class="code" href="logmessage_8h.html#ac0565c81f330a720d673510e0886bb71adf401a3bb36823971749977b65761888">moyen</a>);}
<a name="l00037"></a><a class="code" href="class_constante.html#ac41fa56ac5ebdfbcc886b8d249fb876d">00037</a>     <span class="keyword">virtual</span> <a class="code" href="class_constante.html">Constante</a>* <a class="code" href="class_constante.html#ac41fa56ac5ebdfbcc886b8d249fb876d">division</a>(<a class="code" href="class_constante.html">Constante</a>* c){<span class="keywordflow">throw</span> <a class="code" href="class_log_message.html">LogMessage</a>(2,<span class="stringliteral">&quot;La fonction LOG n&#39;est pas implémentée pour les complexes.&quot;</span>, <a class="code" href="logmessage_8h.html#ac0565c81f330a720d673510e0886bb71adf401a3bb36823971749977b65761888">moyen</a>);}
<a name="l00038"></a><a class="code" href="class_constante.html#a59fcc22949ea02eb02244dad693696aa">00038</a>     <span class="keyword">virtual</span> <a class="code" href="class_constante.html">Constante</a>* <a class="code" href="class_constante.html#a59fcc22949ea02eb02244dad693696aa">signe</a>(){<span class="keywordflow">throw</span> <a class="code" href="class_log_message.html">LogMessage</a>(2,<span class="stringliteral">&quot;La fonction LOG n&#39;est pas implémentée pour les complexes.&quot;</span>, <a class="code" href="logmessage_8h.html#ac0565c81f330a720d673510e0886bb71adf401a3bb36823971749977b65761888">moyen</a>);}
<a name="l00039"></a>00039     <a class="code" href="class_constante.html">Constante</a>* <a class="code" href="class_constante.html#ac6fb071229429f82cf489f8313461efa">recopie</a>();
<a name="l00040"></a><a class="code" href="class_constante.html#a3f3e5ad91d9e4eef33a5e6955fe91cb5">00040</a>     <span class="keyword">virtual</span> <a class="code" href="class_constante.html">Constante</a>* <a class="code" href="class_constante.html#a3f3e5ad91d9e4eef33a5e6955fe91cb5">soustraction</a>(<a class="code" href="class_constante.html">Constante</a>* c){<span class="keywordflow">throw</span> <a class="code" href="class_log_message.html">LogMessage</a>(2,<span class="stringliteral">&quot;La fonction LOG n&#39;est pas implémentée pour les complexes.&quot;</span>, <a class="code" href="logmessage_8h.html#ac0565c81f330a720d673510e0886bb71adf401a3bb36823971749977b65761888">moyen</a>);}
<a name="l00041"></a><a class="code" href="class_constante.html#a5ea6dd472ce568576961fa78b3b674b5">00041</a>     <span class="keyword">virtual</span> <a class="code" href="class_constante.html">Constante</a>* <a class="code" href="class_constante.html#a5ea6dd472ce568576961fa78b3b674b5">inv</a>(){<span class="keywordflow">throw</span> <a class="code" href="class_log_message.html">LogMessage</a>(2,<span class="stringliteral">&quot;La fonction LOG n&#39;est pas implémentée pour les complexes.&quot;</span>, <a class="code" href="logmessage_8h.html#ac0565c81f330a720d673510e0886bb71adf401a3bb36823971749977b65761888">moyen</a>);}
<a name="l00042"></a><a class="code" href="class_constante.html#a96e23d33bd45f79589f8911473ef2e32">00042</a>     <span class="keyword">virtual</span> <a class="code" href="class_constante.html">Constante</a>* <a class="code" href="class_constante.html#a96e23d33bd45f79589f8911473ef2e32">fact</a>(){<span class="keywordflow">throw</span> <a class="code" href="class_log_message.html">LogMessage</a>(2,<span class="stringliteral">&quot;La fonction LOG n&#39;est pas implémentée pour les complexes.&quot;</span>, <a class="code" href="logmessage_8h.html#ac0565c81f330a720d673510e0886bb71adf401a3bb36823971749977b65761888">moyen</a>);}
<a name="l00043"></a><a class="code" href="class_constante.html#a3b6827eba7936c4ce61f64da9dd826b4">00043</a>     <span class="keyword">virtual</span> <a class="code" href="class_constante.html">Constante</a>* <a class="code" href="class_constante.html#a3b6827eba7936c4ce61f64da9dd826b4">sinus</a>(<span class="keywordtype">bool</span> angle){<span class="keywordflow">throw</span> <a class="code" href="class_log_message.html">LogMessage</a>(2,<span class="stringliteral">&quot;La fonction LOG n&#39;est pas implémentée pour les complexes.&quot;</span>, <a class="code" href="logmessage_8h.html#ac0565c81f330a720d673510e0886bb71adf401a3bb36823971749977b65761888">moyen</a>);}
<a name="l00044"></a><a class="code" href="class_constante.html#af6784ed749b7f2be92d6017628e5b935">00044</a>     <span class="keyword">virtual</span> <a class="code" href="class_constante.html">Constante</a>* <a class="code" href="class_constante.html#af6784ed749b7f2be92d6017628e5b935">cosinus</a>(<span class="keywordtype">bool</span> angle){<span class="keywordflow">throw</span> <a class="code" href="class_log_message.html">LogMessage</a>(2,<span class="stringliteral">&quot;La fonction LOG n&#39;est pas implémentée pour les complexes.&quot;</span>, <a class="code" href="logmessage_8h.html#ac0565c81f330a720d673510e0886bb71adf401a3bb36823971749977b65761888">moyen</a>);}
<a name="l00045"></a><a class="code" href="class_constante.html#a101b4506f71295a23c764d34b7f7ecfb">00045</a>     <span class="keyword">virtual</span> <a class="code" href="class_constante.html">Constante</a>* <a class="code" href="class_constante.html#a101b4506f71295a23c764d34b7f7ecfb">sinush</a>(<span class="keywordtype">bool</span> angle){<span class="keywordflow">throw</span> <a class="code" href="class_log_message.html">LogMessage</a>(2,<span class="stringliteral">&quot;La fonction LOG n&#39;est pas implémentée pour les complexes.&quot;</span>, <a class="code" href="logmessage_8h.html#ac0565c81f330a720d673510e0886bb71adf401a3bb36823971749977b65761888">moyen</a>);}
<a name="l00046"></a><a class="code" href="class_constante.html#a0b1cbba53e1112aa65a081ae6231acb5">00046</a>     <span class="keyword">virtual</span> <a class="code" href="class_constante.html">Constante</a>* <a class="code" href="class_constante.html#a0b1cbba53e1112aa65a081ae6231acb5">cosinush</a>(<span class="keywordtype">bool</span> angle){<span class="keywordflow">throw</span> <a class="code" href="class_log_message.html">LogMessage</a>(2,<span class="stringliteral">&quot;La fonction LOG n&#39;est pas implémentée pour les complexes.&quot;</span>, <a class="code" href="logmessage_8h.html#ac0565c81f330a720d673510e0886bb71adf401a3bb36823971749977b65761888">moyen</a>);}
<a name="l00047"></a><a class="code" href="class_constante.html#a51bffad2fa33a397de6ed422a621b1a1">00047</a>     <span class="keyword">virtual</span> <a class="code" href="class_constante.html">Constante</a>* <a class="code" href="class_constante.html#a51bffad2fa33a397de6ed422a621b1a1">tangente</a>(<span class="keywordtype">bool</span> angle){<span class="keywordflow">throw</span> <a class="code" href="class_log_message.html">LogMessage</a>(2,<span class="stringliteral">&quot;La fonction LOG n&#39;est pas implémentée pour les complexes.&quot;</span>, <a class="code" href="logmessage_8h.html#ac0565c81f330a720d673510e0886bb71adf401a3bb36823971749977b65761888">moyen</a>);}
<a name="l00048"></a><a class="code" href="class_constante.html#a6f5f971e61ac831355f1182289c3952f">00048</a>     <span class="keyword">virtual</span> <a class="code" href="class_constante.html">Constante</a>* <a class="code" href="class_constante.html#a6f5f971e61ac831355f1182289c3952f">tangenteh</a>(<span class="keywordtype">bool</span> angle){<span class="keywordflow">throw</span> <a class="code" href="class_log_message.html">LogMessage</a>(2,<span class="stringliteral">&quot;La fonction LOG n&#39;est pas implémentée pour les complexes.&quot;</span>, <a class="code" href="logmessage_8h.html#ac0565c81f330a720d673510e0886bb71adf401a3bb36823971749977b65761888">moyen</a>);}
<a name="l00049"></a><a class="code" href="class_constante.html#aa28e3269159806101c2ac0d09c036c2c">00049</a>     <span class="keyword">virtual</span> <a class="code" href="class_constante.html">Constante</a>* <a class="code" href="class_constante.html#aa28e3269159806101c2ac0d09c036c2c">logN</a>(){<span class="keywordflow">throw</span> <a class="code" href="class_log_message.html">LogMessage</a>(2,<span class="stringliteral">&quot;La fonction LOG n&#39;est pas implémentée pour les complexes.&quot;</span>, <a class="code" href="logmessage_8h.html#ac0565c81f330a720d673510e0886bb71adf401a3bb36823971749977b65761888">moyen</a>);}
<a name="l00050"></a><a class="code" href="class_constante.html#aad178503c937682acd3c9f19aec37dc6">00050</a>     <span class="keyword">virtual</span> <a class="code" href="class_constante.html">Constante</a>* <a class="code" href="class_constante.html#aad178503c937682acd3c9f19aec37dc6">log1</a>(){<span class="keywordflow">throw</span> <a class="code" href="class_log_message.html">LogMessage</a>(2,<span class="stringliteral">&quot;La fonction LOG n&#39;est pas implémentée pour les complexes.&quot;</span>, <a class="code" href="logmessage_8h.html#ac0565c81f330a720d673510e0886bb71adf401a3bb36823971749977b65761888">moyen</a>);}
<a name="l00051"></a><a class="code" href="class_constante.html#a2ed5e0a77fb7766fbce6abb4ebd0b01e">00051</a>     <span class="keyword">virtual</span> <a class="code" href="class_constante.html">Constante</a>* <a class="code" href="class_constante.html#a2ed5e0a77fb7766fbce6abb4ebd0b01e">puissance</a>(<a class="code" href="class_constante.html">Constante</a>* c){<span class="keywordflow">throw</span> <a class="code" href="class_log_message.html">LogMessage</a>(2,<span class="stringliteral">&quot;La fonction LOG n&#39;est pas implémentée pour les complexes.&quot;</span>, <a class="code" href="logmessage_8h.html#ac0565c81f330a720d673510e0886bb71adf401a3bb36823971749977b65761888">moyen</a>);}
<a name="l00052"></a><a class="code" href="class_constante.html#af8029cf3c52e8fdadeb21647ee9591f3">00052</a>     <span class="keyword">virtual</span> <a class="code" href="class_constante.html">Constante</a>* <a class="code" href="class_constante.html#af8029cf3c52e8fdadeb21647ee9591f3">carre</a>(){<span class="keywordflow">throw</span> <a class="code" href="class_log_message.html">LogMessage</a>(2,<span class="stringliteral">&quot;La fonction LOG n&#39;est pas implémentée pour les complexes.&quot;</span>, <a class="code" href="logmessage_8h.html#ac0565c81f330a720d673510e0886bb71adf401a3bb36823971749977b65761888">moyen</a>);}
<a name="l00053"></a><a class="code" href="class_constante.html#a4590414eecfb9e739194a321a73c7931">00053</a>     <span class="keyword">virtual</span> <a class="code" href="class_constante.html">Constante</a>* <a class="code" href="class_constante.html#a4590414eecfb9e739194a321a73c7931">cube</a>(){<span class="keywordflow">throw</span> <a class="code" href="class_log_message.html">LogMessage</a>(2,<span class="stringliteral">&quot;La fonction LOG n&#39;est pas implémentée pour les complexes.&quot;</span>, <a class="code" href="logmessage_8h.html#ac0565c81f330a720d673510e0886bb71adf401a3bb36823971749977b65761888">moyen</a>);}
<a name="l00054"></a><a class="code" href="class_constante.html#a57604347a44e29f6aa7e36a045b4df1c">00054</a>     <span class="keyword">virtual</span> <a class="code" href="class_constante.html">Constante</a>* <a class="code" href="class_constante.html#a57604347a44e29f6aa7e36a045b4df1c">racine</a>(){<span class="keywordflow">throw</span> <a class="code" href="class_log_message.html">LogMessage</a>(2,<span class="stringliteral">&quot;L&#39;opérateur demandé n&#39;est pas implémenté pour ce type d&#39;opérande.&quot;</span>, <a class="code" href="logmessage_8h.html#ac0565c81f330a720d673510e0886bb71adf401a3bb36823971749977b65761888">moyen</a>);}
<a name="l00055"></a>00055 };
<a name="l00056"></a>00056 
<a name="l00057"></a>00057 <span class="preprocessor">#endif // CONSTANTE_H</span>
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Espaces de nommage</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Énumérations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Valeurs énumérées</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Généré le Samedi Juin 16 2012 23:51:37 pour Calculatrice polonais inversé LO21 par &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
